home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2001 November / macformat-109.iso / Demos / Alice Demo / demo / pak0.pk3 / scripts / natural.shader < prev    next >
Encoding:
Text File  |  2000-11-20  |  5.9 KB  |  325 lines

  1. // pete - glowing moss on rock background
  2. textures/natural/rok_moss01
  3. {
  4.     qer_editorimage textures/natural/rok_moss01_tex.tga
  5.     { 
  6.         map textures/natural/rok_moss01_tex.tga
  7. //        map textures/natural/rok_lvaxl03.tga
  8.         rgbGen identity
  9.     }
  10.     {
  11.         map $lightmap
  12.         blendFunc GL_DST_COLOR GL_ZERO
  13.     }
  14.     {
  15.         map textures/natural/rok_moss01_fx.tga
  16.         blendFunc GL_ONE GL_ONE
  17.         rgbgen wave sin 0.1 0.3 0 0.25
  18.     }
  19. }
  20.  
  21. // pete - glowing moss on rock background
  22. textures/natural/rok_moss01_ent
  23. {
  24.     qer_editorimage textures/natural/rok_moss01_tex.tga
  25.     { 
  26.         map textures/natural/rok_moss01_tex.tga
  27. //        map textures/natural/rok_lvaxl03.tga
  28.         rgbGen identity
  29.     }
  30.     {
  31.         map $lightmap
  32.         blendFunc GL_DST_COLOR GL_ZERO
  33.     }
  34.     {
  35.         map textures/natural/rok_moss01_fx.tga
  36.         blendFunc GL_ONE GL_ONE
  37.         rgbgen fromEntity
  38.     }
  39. }
  40.  
  41. // pete - glowing moss on rock background
  42. textures/natural/rok_moss02
  43. {
  44.     qer_editorimage textures/natural/rok_moss02_tex.tga
  45. //    qer_editorimage textures/natural/rok_moss01_tex.tga
  46.     { 
  47.         map textures/natural/rok_moss02_tex.tga
  48. //        map textures/natural/rok_moss01_tex.tga
  49. //        map textures/natural/rok_lvaxl03.tga
  50.         rgbGen identity
  51.     }
  52.     {
  53.         map $lightmap
  54.         blendFunc GL_DST_COLOR GL_ZERO
  55.     }
  56.     {
  57. //        map textures/natural/rok_moss01_fx.tga
  58.         map textures/natural/rok_moss02_fx.tga
  59.         blendFunc GL_ONE GL_ONE
  60.         rgbgen wave sin 0.1 0.3 0 0.25
  61.     }
  62. }
  63.  
  64. // pete - glowing moss on rock background
  65. textures/natural/rok_moss03_ent
  66. {
  67.     qer_editorimage textures/natural/rok_moss03_tex.tga
  68.     { 
  69.         map textures/natural/rok_moss03_tex.tga
  70.         rgbGen identity
  71.     }
  72.     {
  73.         map $lightmap
  74.         blendFunc GL_DST_COLOR GL_ZERO
  75.     }
  76.     {
  77.         map textures/natural/rok_moss03_fx.tga
  78.         blendFunc GL_ONE GL_ONE
  79.         rgbgen fromEntity
  80.     }
  81. }
  82.  
  83. // DHM -- caustics on a cavewall
  84. textures/natural/cave_rock
  85. {
  86.     qer_editorimage textures/natural/cave_09.tga
  87.  
  88.     {
  89.         map $lightmap
  90.         rgbGen identity
  91.     }
  92.     {
  93.         map textures/natural/cave_09.tga
  94.         blendFunc GL_DST_COLOR GL_ZERO
  95.         rgbGen identity
  96.     }
  97.     if shaderlod 0.45
  98.     {
  99.         map textures/effects/reflights.tga
  100.         blendFunc GL_DST_COLOR GL_ONE
  101.         rgbGen identity
  102.         tcgen environment
  103.         tcMod scale 2 2
  104.         tcMod    scroll 0.5 0.5
  105.     }
  106.     endif
  107. }
  108.  
  109. textures/natural/rock_wall1_6
  110. {
  111.     qer_editorimage textures/natural/rock_wall1_6.tga
  112.  
  113.     {
  114.         map $lightmap
  115.         rgbGen identity
  116.     }
  117.     {
  118.         map textures/natural/rock_wall1_6.tga
  119.         blendFunc GL_DST_COLOR GL_ZERO
  120.         rgbGen identity
  121.     }
  122.     if shaderlod 0.45
  123.     {
  124.         map textures/effects/reflights.tga
  125.         blendFunc GL_DST_COLOR GL_ONE
  126.         rgbGen identity
  127.         tcgen environment
  128.         tcMod scale 2 2
  129.         tcMod    scroll 0.5 0.5
  130.     }
  131.     endif
  132. }
  133.  
  134. // DHM -- caustics on a icewall
  135. textures/natural/snow_ground2_9
  136. {
  137.     qer_editorimage textures/natural/snow_ground2_9.tga
  138.  
  139.     {
  140.         map $lightmap
  141.         rgbGen identity
  142.     }
  143.     {
  144.         map textures/natural/snow_ground2_9.tga
  145.         blendFunc GL_DST_COLOR GL_ZERO
  146.         rgbGen identity
  147.     }
  148.     if shaderlod 0.45
  149.     {
  150.         map textures/effects/reflights.tga
  151.         blendFunc GL_DST_COLOR GL_ONE
  152.         rgbGen wave sin 0.8 0.2 0 0.07
  153.         tcgen environment
  154.         tcMod scale 0.5 0.5
  155.         tcMod    scroll -0.07 0.05
  156.     }
  157.     endif
  158. }
  159.  
  160. // DHM -- caustics on a cavewall
  161. textures/natural/cave_test
  162. {
  163.     qer_editorimage textures/natural/cave_03.tga
  164.  
  165.     {
  166.         map $lightmap
  167.         rgbGen identity
  168.     }
  169.     {
  170.         map textures/natural/cave_03.tga
  171.         blendFunc GL_DST_COLOR GL_ZERO
  172.         rgbGen identity
  173.     }
  174.     if shaderlod 0.45
  175.     {
  176.         map textures/effects/reflights.tga
  177.         blendFunc GL_DST_COLOR GL_ONE
  178.         rgbGen identity
  179.         tcgen environment
  180.         tcMod scale 2 2
  181.         tcMod    scroll 0.5 0.5
  182.     }
  183.     endif
  184. }
  185.  
  186.  
  187. // Chris hanging moss
  188. textures/natural/moss3_1
  189. {
  190.     qer_editorimage textures/natural/moss3_1.tga
  191.     surfaceparm alphashadow
  192.     surfaceparm trans
  193.     cull disable
  194.     
  195.     {
  196.         map textures/natural/moss3_1.tga
  197.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  198.         alphaFunc GE128
  199.         depthWrite
  200.         rgbgen identity
  201.     }
  202.     {
  203.         map $lightmap
  204.         rgbgen identity
  205.         blendFunc GL_DST_COLOR GL_ZERO    
  206.         depthFunc equal
  207.     }
  208.     
  209. }
  210.  
  211. // guf slide stuff
  212. textures/natural/slide_cave_03
  213. {
  214.     qer_editorimage textures/natural/cave_03.tga
  215.     surfaceparm slide
  216.     {
  217.         map $lightmap
  218.         rgbGen identity
  219.     }
  220.     {
  221.         map textures/natural/cave_03.tga
  222.         blendFunc GL_DST_COLOR GL_ZERO
  223.         rgbGen identity
  224.     }
  225. }
  226.  
  227. // joshs trees
  228. textures/natural/tree01
  229. {
  230.     qer_editorimage textures/natural/tree01guide.tga
  231.     //surfaceparm alphashadow
  232.     surfaceparm nolightmap
  233.     surfaceparm trans
  234.     cull disable
  235.     
  236.     {
  237.         clampmap textures/natural/tree01.tga
  238.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  239.         //alphaFunc GT0
  240.         //depthWrite
  241.         rgbgen identity
  242.     }
  243.     //{
  244.         //map $lightmap
  245.         //rgbgen identity
  246.         //blendFunc GL_DST_COLOR GL_ZERO    
  247.         //depthFunc equal
  248.     //}
  249.     
  250. }
  251.  
  252. // joshs trees
  253. textures/natural/tree02
  254. {
  255.     qer_editorimage textures/natural/tree02guide.tga
  256.     //surfaceparm alphashadow
  257.     surfaceparm nolightmap
  258.     surfaceparm trans
  259.     cull disable
  260.     
  261.     {
  262.         clampmap textures/natural/tree02.tga
  263.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  264.         //alphaFunc GT0
  265.         //depthWrite
  266.         rgbgen identity
  267.     }
  268.     //{
  269.         //map $lightmap
  270.         //rgbgen identity
  271.         //blendFunc GL_DST_COLOR GL_ZERO    
  272.         //depthFunc equal
  273.     //}
  274.     
  275. }
  276.  
  277. // joshs trees
  278. textures/natural/tree03
  279. {
  280.     qer_editorimage textures/natural/tree03guide.tga
  281.     //surfaceparm alphashadow
  282.     surfaceparm trans
  283.     surfaceparm nolightmap
  284.     cull disable
  285.     
  286.     {
  287.         clampmap textures/natural/tree03.tga
  288.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  289.         //alphaFunc GT0
  290.         //depthWrite
  291.         rgbgen identity
  292.     }
  293.     //{
  294.         //map $lightmap
  295.         //rgbgen identity
  296.         //blendFunc GL_DST_COLOR GL_ZERO    
  297.         //depthFunc equal
  298.     //}
  299.     
  300. }
  301.  
  302. // joshs trees
  303. textures/natural/tree04
  304. {
  305.     qer_editorimage textures/natural/tree04guide.tga
  306.     //surfaceparm alphashadow
  307.     surfaceparm nolightmap
  308.     surfaceparm trans
  309.     cull disable
  310.     
  311.     {
  312.         clampmap textures/natural/tree04.tga
  313.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  314.         //alphaFunc GT0
  315.         //depthWrite
  316.         rgbgen identity
  317.     }
  318.     //{
  319.         //map $lightmap
  320.         //rgbgen identity
  321.         //blendFunc GL_DST_COLOR GL_ZERO    
  322.         //depthFunc equal
  323.     //}
  324.     
  325. }